package com.smec.remes.util;

/**
 * Created by Administrator on 2017/12/5.
 */

public class ChoicDate {
    public static String  set(int mYear,int mMonth,int mDay){
        String days;
        if (mMonth + 1 < 10) {
            if (mDay < 10) {
                days = new StringBuffer().append(mYear).append("/").append("0").
                        append(mMonth + 1).append("/").append("0").append(mDay).append("").toString();
            } else {
                days = new StringBuffer().append(mYear).append("/").append("0").
                        append(mMonth + 1).append("/").append(mDay).append("").toString();
            }
        } else {
            if (mDay < 10) {
                days = new StringBuffer().append(mYear).append("/").
                        append(mMonth + 1).append("/").append("0").append(mDay).append("").toString();
            } else {
                days = new StringBuffer().append(mYear).append("/").
                        append(mMonth + 1).append("/").append(mDay).append("").toString();
            }

        }
        return days;
    }
}
